package com.szyjjk.controller;

import com.alibaba.fastjson.JSONObject;
import com.szyjjk.entity.*;
import com.szyjjk.service.*;
import com.szyjjk.util.DateUtil;
import com.szyjjk.util.ExportExcelUtils;
import com.szyjjk.util.FileUtil;
import com.szyjjk.util.HttpTool;
import org.apache.commons.collections.map.HashedMap;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.*;
import java.lang.reflect.Field;
import java.text.SimpleDateFormat;
import java.util.*;

@Controller
@RequestMapping("/task")
public class TaskTypeController {
    @Autowired
    private tasktypeService tasktypeService;

    /**
     * 数据模型泪飙
     * @return
     */
    @RequestMapping(value = "/getdata.do", method = RequestMethod.GET, produces = "application/json;charset=UTF-8")
    @ResponseBody
    public List<KdtaskType> getdata() {
        return tasktypeService.getdata();
    }

    /**
     * 场模型列表
     * @return
     */
    @RequestMapping(value = "/getdatac.do", method = RequestMethod.GET, produces = "application/json;charset=UTF-8")
    @ResponseBody
    public List<KdtaskType> getdatac() {
        return tasktypeService.getdatac();
    }


}
